package comanche;

public class Server {
	public static void main(String[] args) {
		RequestReceiver rr = new RequestReceiver();
		RequestAnalyzer ra = new RequestAnalyzer();
		RequestDispatcher rd = new RequestDispatcher();
		FileRequestHandler frh = new FileRequestHandler();
		ErrorRequestHandler erh = new ErrorRequestHandler();
		Scheduler s = new MultiThreadScheduler();
		Logger l = new BasicLogger();
		rr.bindFc("rh", ra);
		rr.bindFc("s", s);
		ra.bindFc("rh", rd);
		ra.bindFc("l", l);
		rd.bindFc("h0", frh);
		rd.bindFc("h2", erh);
		rr.run();
	}
}